home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr13 / aurora2c.zip / BRMENU.AML < prev    next >
Text File  |  1995-04-07  |  19KB  |  462 lines

  1.  
  2. // ───────────────────────────────────────────────────────────────────
  3. // The Aurora Editor v2.0
  4. // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
  5. //
  6. // Brief Menu definitions (included by MAIN.AML)
  7. //
  8. // If you have made any changes, save this file and select 'Recompile
  9. // the Editor' from the Set menu. Exit and re-enter the editor for
  10. // your changes to take effect.
  11. // ───────────────────────────────────────────────────────────────────
  12.  
  13. // ───────────────────────────────────────────────────────────────────
  14. //  Edit Window menu bar and tool bar
  15. // ───────────────────────────────────────────────────────────────────
  16.  
  17.   function  EditMen
  18.  
  19.     // menu bar
  20.     menubar "" 1
  21.       item "&File"     "editFile"
  22.       item "&Window"   "editWindow"
  23.       item "&Block"    "editBlock"
  24.       item "&Search"   "editSearch"
  25.       item "F&old"     "editFold"
  26.       item "&Edit"     "editEdit"
  27.       item "&Clip"     "editClip"
  28.       item "&Print"    "editPrint"
  29.       item "Se&t"      "editSet"
  30.       item "M&acro"    "editMacro"
  31.       item "&Help"     "editHelp"
  32.     end
  33.  
  34.     // tool bar
  35.     menubar "" 2
  36.       item "<&&≡>"     toolbar                 // close tool bar
  37.       item "<&&?>"     quickref 'u' 'f'        // users guide
  38.       item "<&&*>"     open "*.*"              // display file manager
  39.       item "<&&/>"     copywin                 // copy window
  40.       item "<&&─>"     splitwin 'h'            // split window horz
  41.       item "<&&|>"     splitwin 'v'            // split window vert
  42.       item "<&&o>"     askopen                 // open prompt
  43.       item "<&&s>"     save                    // save file
  44.       item "<&&F>"     askfind                 // find prompt
  45.       item "<&&f>"     findlast                // do last find/replace
  46.       item "<&&r>"     formatblock2 "kr"       // reformat block
  47.       item "<&&«>"     undo                    // undo last change
  48.       item "<&&»>"     redo                    // redo last change
  49.       item "<&&>>"     foldblock2              // fold block
  50.       item "<&&<>"     destroyfold2            // destroyfold
  51.     end
  52.   end
  53.  
  54.  
  55. // ───────────────────────────────────────────────────────────────────
  56. //  Edit Window pulldown menus
  57. // ───────────────────────────────────────────────────────────────────
  58.  
  59.   menu  "editFile"
  60.     item " &New                  <ctrl n>"  opennew
  61.     item " &Open..                <alt e>"  askopen
  62.     item " Open and &Insert..     <alt r>"  askinsert
  63.     item " Open &Binary.."                  askopenb
  64.     item " Open Las&t"                      openlast
  65.     item " &Rename..              <alt o>"  askname
  66.     item " &Save"                           save
  67.     item " Sa&ve As.."                      asksaveas
  68.     item "-"
  69.     item " &File Manager.."                 open "*.*"
  70.     item " Ne&xt                  <alt n>"  nextfile
  71.     item " &Prev                  <alt ->"  prevfile
  72.     item " &List..                <alt b>"  filelist
  73.     item "─"
  74.     item " &Close                <ctrl ->"  close
  75.     item " Close &All             <alt x>"  closeall
  76.     item " Sav&e and Close"                 close 's'
  77.     item " Save an&d Close All   <ctrl x>"  closeall 's'
  78.     item "─"
  79.     item " Abo&ut.."                        about
  80.   end
  81.  
  82.  
  83.   menu  "editWindow"
  84.     item " &Restore"                       restore
  85.     item " &Move/Size              <f2>"   sizekey
  86.     item " P&an               <ctrl f2>"   pankey
  87.     item " M&inimize"                      minimize
  88.     item " Ma&ximize           <ctrl z>"   maximize
  89.     item " &Next               <ctrl a>"   nextwindow
  90.     item " &Prev"                          prevwindow
  91.     item " &List..                 <f1>"   winlist
  92.     item "─"
  93.     item " &Copy            <ctrl o><w>"   copywin
  94.     item " Split Hor&z"                    splitwin 'h'
  95.     item " Split Ver&t"                    splitwin 'v'
  96.     item "─"
  97.     item " Ca&scade          <shift f5>"   cascade
  98.     item " Tile &Horz        <shift f4>"   tile 'h'
  99.     item " Tile &Vert        <shift f3>"   tile 'v'
  100.     item "─"
  101.     item " Tool &Bar          <ctrl f8>"   toolbar
  102.     item " St&yle Toggle       <alt f1>"   togglestyle
  103.     item " Pr&ompt Style.."                askprompt
  104.   end
  105.  
  106.   menu  "editMark"
  107.     item " Mark &Line         <alt l>"   markline
  108.     item " Mark &Column       <alt c>"   markcolumn
  109.     item " Mark C&haracter    <alt a>"   markchar
  110.     item " Mark &Word"                   markword
  111.     item " Mark to &EOL"                 markeol
  112.     item " Mark &Paragraph"              markpara "tb"
  113.     item "─"
  114.     item " &Unmark"                      destroymark
  115.   end
  116.  
  117.   menu  "editBlock"
  118.     item " Mar&k..                    "    submenu "editMark"
  119.     item " &Copy"                           copyblock2
  120.     item " Copy &Over"                      copyblockover
  121.     item " &Move"                           moveblock2
  122.     item " Mo&ve Over"                      moveblockover
  123.     item " &Delete          <ctrl o><d>"    deleteblock2
  124.     item " &Indent           <shift f8>"    shiftblock  1
  125.     item " Uninden&t         <shift f7>"    shiftblock -1
  126.     item "─"
  127.     item " &Fill            <ctrl o><f>"    fillblock2
  128.     item " &Reformat        <ctrl o><r>"    formatblock2 "kr"
  129.     item " R&eformat Right      <alt y>"    formatblock2 "rj"
  130.     item " S&ave..              <alt w>"    saveblock2
  131.     item " &Sort            <ctrl o><s>"    sortblock2
  132.     item " Lo&wercase"                      caseblock 'l'
  133.     item " U&ppercase       <ctrl o><u>"    caseblock
  134.     item "─"
  135.     item " &Left Justify"                   justblock2 'l'
  136.     item " Ri&ght Justify"                  justblock2 'r'
  137.     item " Ce&nter          <ctrl o><c>"    justblock2 'c'
  138.   end
  139.  
  140.   // brief-style find/replace
  141.   forward findbr
  142.   forward togglecase
  143.   forward toggleregx
  144.   forward gotoroutine
  145.  
  146.   menu  "editSearch"
  147.     item " &Search..            <alt s> or <f5>"   findbr
  148.     item " Search &Backward..          <alt f5>"   findbr '' 'r'
  149.     item " Search &Again             <shift f5>"   findlast
  150.     item " &Translate..         <alt t> or <f6>"   findbr 't'
  151.     item " Translate Back&ward..       <alt f6>"   findbr 't' 'r'
  152.     item " Translate Agai&n          <shift f6>"   search2 (gethiststr "_repl")
  153.     item " &Case Sensitive Toggle     <ctrl f5>"   togglecase
  154.     item " Reg E&xpression Toggle     <ctrl f6>"   toggleregx
  155.     item "-"
  156.     item " Scan &Files..               <ctrl s>"   askscan
  157.     item " &Incremental Search         <ctrl i>"   isearch
  158.     item " Find &Occurrences..         <ctrl h>"   askfindo
  159.     item " Goto Ro&utine               <ctrl g>"   gotoroutine
  160.     item "─"
  161.     item " &Place Bookmark.."                      placebook
  162.     item " &Go to Bookmark.."                      askbook
  163.     item " Go to &Line..                <alt g>"   askrow
  164.     item " Go to Bloc&k Start"                     gotomark 't'
  165.     item " Find &Matching Char         <ctrl [>"   gotomatch2
  166.     item " Go to Compiler &Error"                  gotoerror
  167.   end
  168.  
  169.   menu  "editFold"
  170.     item " &Fold Next Line"                     foldline
  171.     item " &Unfold Next Line"                   foldline 'u'
  172.     item "─"
  173.     item " C&reate Fold"                        createfold
  174.     item " &Destroy Fold"                       destroyfold2
  175.     item " &Open Fold               <alt \\>"   openfold
  176.     item " &Close Fold              <alt \\>"   closefold
  177.     item "─"
  178.     item " Fold Bloc&k"                         foldblock2
  179.     item " Fold Block Fl&at"                    foldflat
  180.     item " Des&troy Block Folds"                foldblock 'ds'
  181.     item " O&pen Block Folds"                   foldblock 'os'
  182.     item " C&lose Block Folds"                  foldblock 'cs'
  183.     item "─"
  184.     item " Destro&y All Folds       <alt 0>"    foldall 'ds'
  185.     item " Ope&n All Folds          <alt [>"    foldall 'os'
  186.     item " Clo&se All Folds         <alt ]>"    foldall 'cs'
  187.     item "─"
  188.     item " &Export without Folds.."             asksaveas 'x'
  189.     item " E&xport Block without Folds.."       saveblock2 'x'
  190.   end
  191.  
  192.   menu  "editEdit"
  193.     item " &Undo                    <alt u>"   undo
  194.     item " &Redo                   <ctrl u>"   redo
  195.     item "─"
  196.     item " &Insert Line        <ctrl enter>"   insline2
  197.     item " &Delete Line             <alt d>"   delline
  198.     item " &Split Line"                        splitline2
  199.     item " &Join Line"                         joinline
  200.     item "─"
  201.     item " &Erase to End            <alt k>"   delchar (getlinelen)
  202.     item " Delete Right &Word   <alt baksp>"   delword
  203.     item " Du&plicate Line"                    insline (gettext)
  204.     item " Sw&ap Lines"                        swapline
  205.     item " Ce&nter Line"                       centerline
  206.     item "─"
  207.     item " &Comment Line"                      commentline
  208.     item " Enter &Literal..         <alt q>"   literal
  209.     item " ASCII C&hart..           <alt =>"   asciilist
  210.     item " Date/&Time Stamp     <ctrl o><t>"   timestamp
  211.     item " E&xpand Tabs         <ctrl o><x>"   tabfile
  212.     item " Hi&ghlight Word         <ctrl \\>"  hiliteword
  213.   end
  214.  
  215.   menu  "editClip"
  216.     item " Cu&t                     <grey->"   cut
  217.     item " Cut &Append         <ctrl grey->"   cut 'a'
  218.     item " &Copy                    <grey+>"   copy
  219.     item " Cop&y Append        <ctrl grey+>"   copy 'a'
  220.     item "─"
  221.     item " &Paste                     <ins>"   paste
  222.     item " Paste &Over         <ctrl grey*>"   paste 'o'
  223.     item "─"
  224.     item " C&lear              <ctrl grey/>"   clear
  225.     item " Current Clip&board..|*"             askclip
  226.   end
  227.  
  228.   menu  "editPrint"
  229.     item " &Print             <ctrl p>"        print
  230.     item " Print &Block        <alt p>"        print 'b'
  231.     item " Print &Formfeed"                    printstr (char 12)
  232.     item "-"
  233.     item " &Header/Footer..|*"                 askprthdr
  234.     item " Printer &Settings..|*"              askprint
  235.   end
  236.  
  237.   menu  "Fonts"
  238.     item " 80 cols x 1&4 rows|*"           videomode 80 14
  239.     item " 80 cols x 2&1 rows|*"           videomode 80 21
  240.     item " 80 cols x 2&5 rows|*"           videomode 80 25
  241.     item " 80 cols x 2&8 rows|*"           videomode 80 28
  242.     item " 80 cols x 4&3 rows|*"           videomode 80 43
  243.     item " 80 cols x 5&0 rows|*"           videomode 80 50
  244.     item "─"
  245.     item " 40 cols x &25 rows|*"           videomode 40 25
  246.   end
  247.  
  248.   // Note: do not change the first 12 lines of this menu
  249.   // (except for key definitions)
  250.   menu  "editSet"
  251.     item " &AutoIndent             <alt f3>"   setting 'A' TOGGLE
  252.     item " &Backup                 <ctrl w>"   setting 'B' TOGGLE
  253.     item " Line &Draw"                         setting 'D' TOGGLE
  254.     item " Line St&yle..                  "   submenu "LineStyle"
  255.     item " &Match Character"                   setting 'M' TOGGLE
  256.     item " &Smart Tabs"                        setting 'S' TOGGLE
  257.     item " Synta&x Highlighting"               setting 'X' TOGGLE
  258.     item " &Translate              <alt f4>"   setting 'T' TOGGLE
  259.     item " &Undo"                              setting 'U' TOGGLE
  260.     item " &Variable Tabs"                     setting 'V' TOGGLE
  261.     item " &Word Wrap"                         setting 'W' TOGGLE
  262.     item " &Live Word Wrap"                    setting 'L' TOGGLE
  263.     item "─"
  264.     item " Word &Processing..             "   submenu "WordP"
  265.     item " Bi&nary Line Length..|*"            askbinary
  266.     item " Line D&elimiter..|*"                askdelim
  267.     item "─"
  268.     item " V&ideo Mode..                  "   submenu "Fonts"
  269.     item " Save &Current Settings"             saveconfig
  270.     item " &Recompile the Editor"              recompile
  271.   end
  272.  
  273.   menu  "WordP"
  274.     item " &Tab Width..|*"            asktabw
  275.     item " &Variable Tab Stops..|*"   asktabv
  276.     item "─"
  277.     item " &Left Margin..|*"          asklmarg
  278.     item " &Right Margin..|*"         askrmarg
  279.   end
  280.  
  281.   // Note: do not change this menu (except for key definitions)
  282.   menu  "LineStyle"
  283.     item " &Single"               setdraw 0
  284.     item " Double &Horizontal"    setdraw 1
  285.     item " Double &Vertical"      setdraw 2
  286.     item " &Double"               setdraw 3
  287.     item " &Eraser"               setdraw 4
  288.   end
  289.  
  290.   menu  "editMacro"
  291.     item " &Record Toggle            <f7>"    record
  292.     item " &Play                     <f8>"    play
  293.     item " &Erase"                            erasekey
  294.     item " Era&se All"                        erasekey 'a'
  295.     item " Ope&n..               <alt f7>"    askopenkey
  296.     item " Sa&ve..               <alt f8>"    asksavekey
  297.     item " &Assign to Key.."                  assignkey
  298.     item "─"
  299.     item " &Configuration.."                  opencfg "config"
  300.     item " &Keys.."                           opencfg "kbd"
  301.     item " Sample Utility &Macros.."
  302.       runmacro (getbootpath + "MACRO\\" + "utility.x")
  303.     item "─"
  304.     item " Macro E&xpression..   <ctrl v>"    askeval
  305.     item " R&un Macro.."                      askrmacro
  306.     item " &Include Macro.."                  askimacro
  307.     item " Compi&le Macro.."                  askcmacro
  308.     item "─"
  309.     item " &OS Command..         <alt f9>|*"  askrun
  310.     item " OS Cap&ture.."                     askruncap
  311.     item " OS S&hell              <alt z>|*"  shell
  312.   end
  313.  
  314.   menu  "editHelp"
  315.     item " &User's Guide Topics"
  316.       runmacro (getbootpath + "MACRO\\" + "helpuser.x")
  317.     item " User's &Guide"                            quickref 'u'
  318.     item " User &Tips"                               quickref 't'
  319.     item "-"
  320.     item " &Language Reference Topics"
  321.       runmacro (getbootpath + "MACRO\\" + "helplang.x")
  322.     item " Language &Reference"                      quickref 'l'
  323.     item "-"
  324.     item " &Function Reference          <shift f2>"  quickref 'f'
  325.     item " Function &Quick Reference    <shift f1>"  quickref 'q'
  326.     item "-"
  327.     item " &Ordering Information"                    quickref 'o'
  328.   end
  329.  
  330.  
  331. // ───────────────────────────────────────────────────────────────────
  332. //  File Manager window menu bar
  333. // ───────────────────────────────────────────────────────────────────
  334.  
  335.   function  FmgrMen
  336.     menubar "" 1
  337.       item "&File"    "fmgrFile"
  338.       item "&Window"  "fmgrWindow"
  339.       item "&Mark"    "fmgrMark"
  340.       item "&Command" "fmgrCommand"
  341.       item "&Sort"    "fmgrSort"
  342.       item "&Print"   "fmgrPrint"
  343.       item "Se&t"     "fmgrSet"
  344.       item "M&acro"   "editMacro"
  345.       item "&Help"    "editHelp"
  346.     end
  347.   end
  348.  
  349.  
  350. // ───────────────────────────────────────────────────────────────────
  351. //  File Manager window pulldown menus
  352. // ───────────────────────────────────────────────────────────────────
  353.  
  354.   menu  "fmgrFile"
  355.     item " &New                 <ctrl n>"  opennew
  356.     item " &Open..               <alt e>"  askopen
  357.     item " Open &Binary.."                 askopenb
  358.     item " Open Las&t"                     openlast
  359.     item " &Parent          <ctrl baksp>"  fup
  360.     item " R&efresh"                       reopen
  361.     item "─"
  362.     item " &Close               <ctrl ->"  close
  363.     item " Close &All            <alt x>"  closeall
  364.     item "─"
  365.     item " Abo&ut.."                       about
  366.   end
  367.  
  368.   menu  "fmgrWindow"
  369.     item " &Restore"                      restore
  370.     item " &Move/Size             <f2>"   sizekey
  371.     item " P&an              <ctrl f2>"   pankey
  372.     item " M&inimize"                     minimize
  373.     item " Ma&ximize          <ctrl z>"   maximize
  374.     item " &Next              <ctrl a>"   nextwindow
  375.     item " &Prev"                         prevwindow
  376.     item " &List..                <f1>"   winlist
  377.     item "─"
  378.     item " Ca&scade         <shift f5>"   cascade
  379.     item " Tile &Horz       <shift f4>"   tile 'h'
  380.     item " Tile &Vert       <shift f3>"   tile 'v'
  381.     item "─"
  382.     item " Pr&ompt Style.."               askprompt
  383.   end
  384.  
  385.   menu  "fmgrMark"
  386.     item " Mark &Toggle     <space>"     fmark
  387.     item "─"
  388.     item " &Mark All        <alt m>"     fmark "ma"
  389.     item " &Unmark All      <alt u>"     fmark "ua"
  390.   end
  391.  
  392.   menu  "fmgrCommand"
  393.     item " &Open                  <enter>"    fopen
  394.     item " Open &Binary         <shift b>"    fopen 'b'
  395.     item " Open &Key Macro      <shift k>"    openkey2 (getffile)
  396.     item "─"
  397.     item " &Move..              <shift m>"    fmove
  398.     item " &Copy..              <shift c>"    fcopy
  399.     item " &Delete     <del> or <shift d>"    fdelete
  400.     item " Re&name..            <shift n>"    frename
  401.     item "─"
  402.     item " &Run                 <shift r>"    frun 'c'
  403.     item " &Print               <shift p>"    fprint
  404.     item "─"
  405.     item " &Attributes..        <shift a>"    fattr
  406.     item " &Touch               <shift t>"    ftouch
  407.     item "─"
  408.     item " Cr&eate Directory.."               fmkdir
  409.     item " &Scan Files..         <ctrl s>"    askscan
  410.   end
  411.  
  412.   menu  "fmgrSort"
  413.     item " &Name           <alt n>"    fsort 'n'
  414.     item " &Extension"                 fsort 'e'
  415.     item " &Size           <alt s>"    fsort 's'
  416.     item " &Date-Time      <alt d>"    fsort 'd'
  417.     item " &OS Default     <alt o>"    fsort 'o'
  418.   end
  419.  
  420.   menu  "fmgrSet"
  421.     item " Bi&nary Line Length..|*"                askbinary
  422.     item " L&ine Delimiter..|*"                    askdelim
  423.     item "─"
  424.     item " &Video Mode..                   "      submenu "Fonts"
  425.     item " Video To&ggle           <ctrl f1>|*"    togglemode
  426.     item "-"
  427.     item " Save &Current Settings"                 saveconfig
  428.     item " &Recompile the Editor"                  recompile
  429.   end
  430.  
  431.   menu  "fmgrPrint"
  432.     item " &Print             <ctrl p>"   print
  433.     item " Print &Formfeed"               printstr (char 12)
  434.     item " Print &Settings..|*"           askprint
  435.   end
  436.  
  437.  
  438. // ───────────────────────────────────────────────────────────────────
  439. //  Miscellaneous menus
  440. // ───────────────────────────────────────────────────────────────────
  441.  
  442.   // yes/no/cancel popup menu
  443.   menu  "ync"
  444.     item " &Yes"
  445.     item " &No"
  446.     item " &Cancel"
  447.   end
  448.  
  449.   // ok/cancel popup menu
  450.   menu  "ok"
  451.     item " O&k"
  452.     item " &Cancel"
  453.   end
  454.  
  455.   // replace/append/cancel popup menu
  456.   menu  "rac"
  457.     item " &Replace"
  458.     item " &Append"
  459.     item " &Cancel"
  460.   end
  461.  
  462.